#include <gtest/gtest.h>
#include <reduce_ops.h>
#include <common.h>
#include <algorithm>
using namespace std;
TEST(TestReduceOp, ReduceSuits)
{

   unsigned int N = 1 << 24;
    int *h_in = new int[N];
    fill(h_in, h_in + N, 1);
    int sum_cpu = reduce_sum_cpu(h_in, N);
    int sum_gpu = reduce_sum_cuda(h_in, N, WARP_SMEM_UNROLL8);
      EXPECT_TRUE(sum_cpu==sum_gpu);
}

